# a=1
# while a<10:
#     print("qaqaqaq")
#     a=a+1
#
#
# # 使用range() 创建数字列表
# # Python函数range() 让你能够轻松地生成一系列的数字
# for value in range(1,11):
#     print(value,end=" ")
#
#
# for a in range(1,101):
#     print("第"+str(a)+"遍好好学习天天向上")
#
#
#
# sum = 0
# for i in range(1,101):
#     sum=sum+i
# print(sum)
# #100以内偶数的和可以如下写，也可以在for里面嵌套一个偶数判断语句
# sum=0
# for i in range(1,51):
#     sum=sum+i
# sum=sum*2
# print(sum)
#
#
#
# for i in range(1,6):
#     for j in range(1,6):
#         print("*",end="")
#     print("\t")
#
#
#
# #鸡兔同笼：头35，脚94
# for ji in range(0,36):
#     for tu in range(0,36):
#         if (ji*2+tu*4)==94 and ji+tu==35:
#             print(ji,tu)
#
#
#
#
# for i in range(0,7):
#     for j in range(0,7):
#         if i+j==6 :
#             print(str(i)+"+"+str(j)+"=6")
#

i=5
while i>1:
    num1 = int(input("输入第一个数："))
    num2 = input("输入运算符：")
    num3 = int(input("输入第二个数："))
    if num2=="+":
        sum1=num1+num3
    elif num2=="-":
        sum1=num1-num3
    elif num2=="*":
        sum1=num1*num3
    elif num2=="/":
        sum1=num1/num3
    print(str(num1)+num2+str(num3)+"="+str(sum1))
    jixu=input("是否继续计算？y/n:")
    if jixu=="n":
        break;

i = "y"
while i=="y" :
    num1 = int(input("输入第一个数："))
    num2 = input("输入运算符：")
    num3 = int(input("输入第二个数："))
    if num2=="+":
        sum1=num1+num3
    elif num2=="-":
        sum1=num1-num3
    elif num2=="*":
        sum1=num1*num3
    elif num2=="/":
        sum1=num1/num3
    print(str(num1)+num2+str(num3)+"="+str(sum1))
    i=input("是否继续计算？y/n:")